package com.atguigu.yygh.hosp.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import  com.baomidou.mybatisplus.extension.plugins.*;

/**
 * @author jpt
 * @create 2022 - 03 - 10 13:22
 */
@Configuration
@MapperScan("com.atguigu.yygh.hosp.mapper")
public class HospConfig {

    //分页插件
    @Bean
    public  PaginationInterceptor paginationInterceptor(){
        return  new PaginationInterceptor();
    }
}
